package com.designoutput.vo
{
	public class CardTypeCollectionVo
	{
		public var outerMargin:Number;
		public var outerMarginColor:Number;
		public var innerMarginColor:Number;
		
		public var cardTypes:Vector.<CardTypeVo> = new Vector.<CardTypeVo>();

		public static function parseFromXML(data:XML):CardTypeCollectionVo
		{
			var obj:CardTypeCollectionVo = new CardTypeCollectionVo();
			obj.outerMargin = new Number(data.@outerMargin);
			obj.outerMarginColor = new Number(data.@outerMarginColor);
			obj.innerMarginColor = new Number(data.@innerMarginColor);
			
			for each (var xml:XML in data.card)
			{
				var p:CardTypeVo = CardTypeVo.parseFromXML(xml);
				obj.cardTypes.push(p);
			}
			
			return obj;
		}
	}
}